package com.zhengke.pojo;

import java.io.Serializable;

public class AjaxResult implements Serializable {

	private static final long serialVersionUID = 1L;

	//返回到前台的状态码默认200就相当于成功
	private String satausCode;
	//返回到前台的信息
	private String message;
	//返回的路径地址信息
	private String forwardUrl;
	//需要传递到前台的数据
	private Object object;

	public AjaxResult() {
		
	}

	public String getSatausCode() {
		return satausCode;
	}
	
	public AjaxResult(String satausCode, String message) {
		this.satausCode = satausCode;
		this.message = message;
	}
	
	public AjaxResult(String satausCode, String message,Object object) {
		this.satausCode = satausCode;
		this.message = message;
		this.object = object;
	}
	
	public AjaxResult(String satausCode, String message, String forwardUrl, Object object) {
		super();
		this.satausCode = satausCode;
		this.message = message;
		this.forwardUrl = forwardUrl;
		this.object = object;
	}
	public void setSatausCode(String satausCode) {
		this.satausCode = satausCode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getForwardUrl() {
		return forwardUrl;
	}

	public void setForwardUrl(String forwardUrl) {
		this.forwardUrl = forwardUrl;
	}

	public Object getObject() {
		return object;
	}

	public void setObject(Object object) {
		this.object = object;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	@Override
	public String toString() {
		return "AjaxResult [satausCode=" + satausCode + ", message=" + message + ", forwardUrl=" + forwardUrl
				+ ", object=" + object + "]";
	}
}
